package com.yonyou.isv.demo.openapi.api.fileup;

import com.yonyou.isv.demo.openapi.api.BaseOpenApi;
import com.yonyou.isv.demo.openapi.api.OpenApiURL;
import com.yonyou.isv.demo.openapi.base.module.reponse.ApiDataResponse;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author nishch
 * @description: TODO 协同文件上传
 * @date 2022/3/10
 */
@Component
public class FileUpApi extends BaseOpenApi {

    public Map<String,Object> upload(String filePath,Map<String,String> header)
    {
        ApiDataResponse apiDataResponse = file(OpenApiURL.USPACE_FILE_UP, filePath,header, ApiDataResponse.class);
        return getData(apiDataResponse);
    }


}
